/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const reportCenterRouter = {
  path: '/reportCenter',
  component: Layout,
  redirect: '/reportCenter/Manual',
  name: 'reportCenter',
  meta: {
    title: '报表中心',
    icon: 'chart',
    roles:['operator','root']
  },
  children: [
    {
      path: 'Manual',
      name: 'Manual',
      component: () => import('@/views/reportCenter/Manual'),
      meta: { title: '手动报表', icon: 'dian' ,roles: ['operator','root']}
    },
    {
      path:'automatic',
      name:'automatic',
      component:()=>import('@/views/reportCenter/automatic/children/automatic'),
      meta:{ title:'自动报表',  icon: 'dian', roles:['operator','root'] }
    },
    {
      path:'parameter',
      name:'parameter',
      component:()=>import('@/views/reportCenter/automatic/children/parameter'),
      meta:{ title:'报表参数', icon: 'dian',  roles:['operator','root'] }
    }
    // {
    //   path: 'automatic',
    //   name: 'automatic',
    //   redirect:'/reportCenter/automatic/automatic',
    //   component: () => import('@/views/reportCenter/automatic/index'),
    //   meta: { title: '自动报表', icon: 'dian' ,roles: ['operator']},
    //   children:[
    //     {
    //       path:'automatic',
    //       name:'automatic',
    //       component:()=>import('@/views/reportCenter/automatic/children/automatic'),
    //       meta:{ title:'报表规则', roles:['operator'] }
    //     },
    //     {
    //       path:'parameter',
    //       name:'parameter',
    //       component:()=>import('@/views/reportCenter/automatic/children/parameter'),
    //       meta:{ title:'报表参数', roles:['operator'] }
    //     }
    //   ]
    // }
    //   path: 'dictionaries',
        //   name: 'dictionaries',
        //   redirect:'/system/dictionaries/EventsDictionary',
        //   component: () => import('@/views/operator/system/dictionaries/index'),
        //   meta: { title: '字典管理', icon: 'erji', roles:['operator'] },
        //   children:[
        //     {
        //       path:'EventsDictionary',
        //       name:'EventsDictionary',
        //       component:()=>import('@/views/operator/system/dictionaries/children/EventsDictionary'),
        //       meta:{ title:'事件字典', roles:['operator'] }
        //     }
        //   ]
  ]
}

export default reportCenterRouter
